<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of AnimusRAD
 *
 * @author Animus Inc.
 */

/*
**	Restrict direct access
*/

defined("_dispatch")	or	die("Access Denied !");

define('DOMROOT', dirname(dirname(dirname(__FILE__))));
define('APICore', DOMROOT.'/classes/APICore');

require_once APICore.'/AnimusFactory.php';
require_once APICore.'/AnimusRequest.php';
require_once APICore.'/AnimusResponse.php';

class AnimusRAD {
    
    public static function startAnimusApp() {
        $Request = new AnimusRequest();
        $Response = new AnimusResponse();
        $AnimusFactory = new AnimusFactory($Request, $Response);
        $AnimusFactory ->route();
        $AnimusFactory ->startComponent();
        $Response -> getView() -> output();
        return;
    }
}

?>
